import "./favAd.css";

import { getData } from "../../../../api/getData";
import render from "./favAd.art";

const AdUrl = "https://www.imooc.com/api/mall-PC/index/ad";
const favAdPanel = document.querySelector("#favAd");

getData(AdUrl).then((res) => {
  const html = render({ data: res });
  favAdPanel.innerHTML = html;
});
